package pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 客户端用户
 * @author WUJA13
 *
 */
@Entity
@Table(name = "c_user")
public class User {
	///id
	@Id
	private String id;
	//name
	@Column(name = "name", nullable = false, length = 40, insertable = true/* false表示不能插入 */, updatable = true/* 可被更新 */, unique = true)
	private String name;
	//psd
	@Column(name = "psd",nullable = false, length = 30,insertable=true)
	private String psd;
	//age
	private int age;
	//sex
	@Column(columnDefinition="char(1)")
	private boolean sex;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPsd() {
		return psd;
	}
	public void setPsd(String psd) {
		this.psd = psd;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", psd=" + psd + ", age=" + age + ", sex=" + sex + "]";
	}
	
	
	
}
